import argparse
import compare





if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Compare images with the same name and save the results.')
    parser.add_argument('datasetLocation', type=str, help='Location of the dataset containing original images.')
    parser.add_argument('predictResultLocation', type=str, help='Location of the folder containing prediction results.')
    args = parser.parse_args()
    compare.compare_images_and_save(args.datasetLocation, args.predictResultLocation)

    # compare.compare_images_and_save(
    #     "E:/Detection20250302/src/main/resources/datasets/1/cd/",
    #     "E:/Detection20250302/src/main/resources/CorsicanFire/segmentation/../../predictResult/1/339/224/predictResult"
    # )